<template>
  <view :style="themeColor">
    <view class="page">
      <view class="flex benben-position-layout flex flex-wrap align-center articleDtails_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-center justify-between flex-sub articleDtails_fd0_0'>
          <view class='flex flex-wrap align-center articleDtails_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
            data-url="1">
            <text class='fu-iconfont2  articleDtails_fd0_0_c0_c0'>&#xE794;</text>
          </view>
          <view class='flex flex-wrap align-stretch justify-center'>
            <text class='articleDtails_fd0_0_c1_c0'>{{$t('详情')}}</text>
          </view>
          <view class='flex flex-wrap align-center justify-end articleDtails_fd0_0_c0'>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout articleDtails_flex_1">
        <view class='flex flex-wrap align-center'>
          <text class='articleDtails_fd1_0_c0'>{{Management.title}}</text>
        </view>
        <view class='flex flex-wrap align-center articleDtails_fd1_1'>
          <text class='articleDtails_fd1_1_c0'>{{Management.create_time}}</text>
        </view>
        <view class='flex flex-wrap align-center articleDtails_fd1_2'>
          <jyf-parser :html="Management.text | richTextFormat"></jyf-parser>
          <!-- <text class='articleDtails_fd1_2_c0'>{{Management.text}}</text> -->
        </view>
        <image class='articleDtails_fd1_3' mode="aspectFit" :src='Management.img'></image>
      </view>

      <!---flex布局flex布局结束-->


    </view>
  </view>
</template>
<script>
  import {
    validate
  } from '@/common/utils/validate.js'
  export default {
    components: {},


    data() {
      return {
        "Management": {
          "title": "",
          "address": "",
          "img": "",
          "start_time": "",
          "check_status": "",
          "text": "",
          "end_time": "",
          "aid": "",
          "create_time": "",
          "money": ""
        },
        "id": ""
      };
    },
    computed: {
      themeColor() {
        return this.$store.getters.themeColor
      },

    },
    watch: {},
    onLoad(options) {
      let {
        id
      } = options
      if (id !== undefined) this.id = id
      this.getManagementFunc()
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      //获取活动管理
      async getManagementFunc() {
        //请求方法
        //数据验证
        // post65601d8ab314b
        let dataManagement = await this.$api.get(global.apiUrls.post655ffda18f106, {
          aid: this.id
        });

        if (dataManagement.data.code != 1) {
          this.$message.info(dataManagement.data.msg);
          return
        }
        let infoManagement = dataManagement.data;
        this.Management = infoManagement.data

      }
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: rgba(247, 243, 237, 1);
    background-size: 100% auto;
  }

  .articleDtails_flex_0 {
    border-bottom: 1px solid #eee;
    background: rgba(247, 243, 237, 1);
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .articleDtails_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 700;
    color: #333333;
    line-height: 50rpx;
  }

  .articleDtails_fd0_0_c0_c0 {
    font-size: 36rpx;
    color: #333;
  }

  .articleDtails_fd0_0_c0 {
    width: 120rpx;
  }

  .articleDtails_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .articleDtails_flex_1 {
    padding: 25rpx 32rpx 0rpx 32rpx;
  }

  .articleDtails_fd1_3 {
    width: 686rpx;
    height: 360rpx;
    border-radius: 0rpx 0rpx 0rpx 0rpx;
    margin: 40rpx 0rpx 0rpx 0rpx;
  }

  .articleDtails_fd1_2_c0 {
    color: #666666;
    font-size: 28rpx;
    font-weight: 400;
    line-height: 46rpx;
    text-indent: 2em;
  }

  .articleDtails_fd1_2 {
    margin: 40rpx 0rpx 0rpx 0rpx;
  }

  .articleDtails_fd1_1_c0 {
    color: #999999;
    font-size: 24rpx;
    font-weight: 400;
    line-height: 32rpx;
  }

  .articleDtails_fd1_1 {
    margin: 24rpx 0rpx 0rpx 0rpx;
  }

  .articleDtails_fd1_0_c0 {
    color: #333333;
    font-size: 32rpx;
    font-weight: 500;
    line-height: 54rpx;
  }
</style>